package com.amiu.util;


public class ResultUtil {

	/**
     * ajax成功
     * @return {Object}
     */
    public Result renderSuccess() {
        Result result = new Result();
        result.setSuccess(true);
        return result;
    }
    public Result renderSuccess(String msg) {
        Result result = new Result();
        result.setSuccess(true);
        result.setMsg(msg);
        return result;
    }
    public Result renderSuccess(String msg,Object returnObj) {
        Result result = new Result();
        result.setSuccess(true);
        result.setMsg(msg);
        result.setObj(returnObj);
        return result;
    }
    public Result renderFail(String msg) {
        Result result = new Result();
        result.setSuccess(false);
        result.setMsg(msg);
        return result;
    }
    
}
